-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to django 4.2 #1918
Update to django 4.2 #1918
Conversation
3c0338b
to
98b048d
Compare
@niklasmohrin: Filtering anything like: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warnings in production sounds good
…afe -> we can get rid of three '|safe' template filter calls
…n 'update_fields' parameter when additional fields are changed
Technically, our dev-dependency
django-stubs
doesn't support django4.2 yet. However, I don't see a problem here if CI passes, so I wouldn't wait for them.The other problematic candidate,
mozilla-django-oidc
, doesn't really give any kind of "we support these versions of django" information. Their tests don't yet run with django4.2. Locally, for me, OIDC login works as expected, and django's changelog doesn't indicate any relevant changes to the authentication mechanism.Running the tests with warnings enabled currently triggers these:
> /home/evap/venv/lib/python3.8/site-packages/django/contrib/auth/views.py:142: RemovedInDjango50Warning: Log out via GET requests is deprecated and will be removed in Django 5.0. Use POST requests for logging out.
-> We currently have three tests that
self.app.get(reverse("django-auth-logout")
. Simply changing these to "post" seems to fail. The logout button in the navbar currently simply is a link, not a form that will be submitted. I guess both require a bit of work.> /home/evap/venv/lib/python3.8/site-packages/django/db/models/fields/related_lookups.py:52: RemovedInDjango50Warning: Passing unsaved model instances to related filters is deprecated.
-> A few of our tests currently do this (
test_copy_contribution
,test_initial_from_original
,test_no_original_given
,test_merge_users_changes_data_on_success
. Will have to reevaluate those. It seems like this also happens on some staff views (evaluation_copy, evaluation_create, import-views)